package com.charm.businesshub.api

import com.charm.codes.nethard.RetrofitFactory

/**
 * Created by tools on 2018/1/5.
 */
class HubServiceManager {
    companion object {
        private var service: HubService? = null
        @Synchronized
        fun hubService(): HubService = service?.let { service }
                ?: RetrofitFactory.build("http://120.76.205.241:8000").create<HubService>(HubService::class.java)
    }
}